import service from "../utils/request";
//列表
export function discount_list(payload={}){
    return service.get('/discount',{params:payload})
}
//添加
export function discount_add(payload={}){
    return service.post('/discount',payload)
}
//删除
export function discount_del(payload={}){
    return service.delete('/discount/'+payload.id,payload)
}
//停用
export function discount_xiu(payload={}){
    return service.patch('/discount/'+payload.id,payload)
}
//查询单个商品
export function discount_info( payload = {} ){
    return service.get('/discount/'+payload.id, { params: payload  } );
}
//查询
export function discount_list4( payload = {} ){
    return service.get('/discount', { params: payload  } );
}
//编辑
export function discount_list2( payload = {} ){
    return service.put('/discount/'+payload.id, payload );
}


//商品列表
export function goods_list(payload={}){
    return service.get('/goods',{params:payload})
}